#ifndef SLIDERWITHBTNS_H
#define SLIDERWITHBTNS_H

#include <QWidget>
#include <QLabel>
#include <QSlider>
#include <QPushButton>

#include <QHBoxLayout>
#include <QVBoxLayout>

class SliderWithBtns : public QWidget
{
    Q_OBJECT
public:
    explicit SliderWithBtns(const QString = "", QWidget *parent = nullptr);

    int value() const;
    void setRange(int min, int max);
    QPushButton *btnMinus() const;
    QPushButton *btnPlus() const;

signals:
    void valueChanged(int value);

private:
    QSlider *slider;
    QPushButton *btn_minus, *btn_plus;
    QLabel *text, *val;

};

#endif // SLIDERWITHBTNS_H
